package com.lxy.aimin.mcp.server.service;


import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

@Service
public class WeatherService {

    @Tool(name = "weather",description = "根据地点获取天气信息")
    public String getWeather(String address) {
        System.out.println("今天可能会下雨" );
        return "今天可能会下雨" + address;
    }
}
